﻿<%@ WebHandler Language="C#" Class="ListenHandler" %>

using System;
using System.Web;
using System.Linq;
using System.Collections.Generic;
using Newtonsoft.Json;
using CheatService;

public class ListenHandler : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "application/json;charset=UTF-8";
        string result = string.Empty;
        string talkerKey = context.Request["listenKey"];
        if (string.IsNullOrEmpty(talkerKey))
        {
            result = "-1";
        }
        else
        {
            result = UserContorl.OnListenComing(talkerKey);

        }
        context.Response.Write(result);
    }

  

    public bool IsReusable
    {
        get
        {
            return true;
        }
    }

}